﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NavLine.Aircraft
{
	public delegate void ACControllerEvent(AC_Controller sender);
		
	public partial class AC_Controller
	{
		public AC aircraft;
		public AC_Controller(AC iaircraft)
		{
			aircraft = iaircraft;
			BankControll = new PT1(aircraft.config.BankT, 1, 0);
		}

		public void Process(double dt)
		{
			ProcessSegment(dt);
			ProcessLine(dt);
			ProcessPoint(dt);
			ProcessHeading(dt);
		}
		void ResetControl()
		{
			TowardSegment = false;
			TowardLine = false;
			TowardPoint = false;
			NavigatingHeading = false;
		}
	}
}